
package org.smartboot.compare.array;

import org.smartboot.compare.ComparatorContext;
import org.smartboot.compare.comparator.AbstractComparator;
import org.smartboot.compare.constants.CompareConstants;
import org.smartboot.compare.difference.Difference;

/**
 * @author qinluo
 * @date 2024-03-24 01:40:51
 * @since 1.0.7
 */
public class ObjectArrayComparator extends AbstractComparator<Object[]> {

    @Override
    public Difference compare(Object[] expect, Object[] actual, ComparatorContext<Object[]> context) {
        return ArrayHelper.compare(expect, actual, context, CompareConstants.OBJECT, Object.class);
    }
}
